//
//  oldBaseViewController.m
//  laonianbang
//
//  Created by 勇拓 李 on 17/10/9.
//  Copyright © 2017年 zaiyou. All rights reserved.
//

#import "oldBaseViewController.h"

@interface oldBaseViewController ()

@end

@implementation oldBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIBarButtonItem *backIteme = [[UIBarButtonItem alloc]init];
    backIteme.title = @" ";
    self.navigationItem.backBarButtonItem = backIteme;
    
    self.automaticallyAdjustsScrollViewInsets = NO;//去掉tableview上方的空白
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)setBackBtn
{
    btn_back = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
    [btn_back addTarget:self action:@selector(gotoBack) forControlEvents:UIControlEventTouchUpInside];
    [btn_back setImage:[UIImage imageNamed:@"返回"] forState:UIControlStateNormal];
    UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithCustomView:btn_back];
    self.navigationItem.leftBarButtonItem = backItem;
}

- (void)gotoBack
{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
